Skip to content

[stable33] test(validation): unmount wrappers to fix pending fetch errors#7021

Merged
vitormattos merged 1 commit intostable33from
backport/7020/stable33
Feb 26, 2026
Merged

[stable33] test(validation): unmount wrappers to fix pending fetch errors#7021
vitormattos merged 1 commit intostable33from
backport/7020/stable33

Conversation

@backportbot-libresign
Copy link
Copy Markdown

Backport of PR #7020

Vitest was reporting 13 unhandled rejections with
'Closing rpc while fetch was pending' in Validation.spec.ts.

Root cause: Vue instances were never unmounted between tests,
so their beforeUnmount hooks never ran — isActiveView stayed
true and background microtasks (validate, refreshAfterAsyncSigning)
kept firing after the worker started winding down.

Fixes:
- Add outer afterEach(() => wrapper.unmount()) for the main wrapper
- Track local wrappers in the created() describe at scope level
  and unmount them in afterEach
- Unmount the inline localWrapper in the handleValidationSuccess
  describe immediately after use

Signed-off-by: Vitor Mattos <[email protected]>
@github-project-automation github-project-automation Bot moved this to 0. Needs triage in Roadmap Feb 26, 2026
@backportbot-libresign backportbot-libresign Bot added this to the Next Patch (33) milestone Feb 26, 2026
@vitormattos vitormattos merged commit ec16eb7 into stable33 Feb 26, 2026
63 checks passed
@vitormattos vitormattos deleted the backport/7020/stable33 branch February 26, 2026 21:42
@github-project-automation github-project-automation Bot moved this from 0. Needs triage to 4. to release in Roadmap Feb 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant